package com.syzg.base.login.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.syzg.base.permission.model.Permission;

public class LoginObject implements Serializable
{
	private static final long serialVersionUID = -8929232369153057688L;
    private String personName;
    private String personId;
    private String login;
    private String ip;
    private String permissionStr;
    private int loginFailureTimes;
    private Date lockedTime;
    private String sessionId;
    private List<Permission> permissionList;
    private String loginDate;
    //是否默认密码
    private boolean defaultPassword;
    
    public LoginObject(){
        permissionList = new ArrayList<Permission>();
    }

    public String getIp(){
        return ip;
    }

    public void setIp(String ip){
        this.ip = ip;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public String getPersonName(){
        return personName;
    }

    public void setPersonName(String personNme){
        personName = personNme;
    }

    public String getLogin(){
        return login;
    }

    public void setLogin(String login){
        this.login = login;
    }

    public List<Permission> getPermissionList(){
        return permissionList;
    }

    public void setPermissionList(List<Permission> permissionList){
        this.permissionList = permissionList;
    }

	public String getPermissionStr() {
		return permissionStr;
	}

	public void setPermissionStr(String permissionStr) {
		this.permissionStr = permissionStr;
	}

	public int getLoginFailureTimes() {
		return loginFailureTimes;
	}

	public void setLoginFailureTimes(int loginFailureTimes) {
		this.loginFailureTimes = loginFailureTimes;
	}

	public Date getLockedTime() {
		return lockedTime;
	}

	public void setLockedTime(Date lockedTime) {
		this.lockedTime = lockedTime;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public boolean isDefaultPassword() {
		return defaultPassword;
	}

	public void setDefaultPassword(boolean defaultPassword) {
		this.defaultPassword = defaultPassword;
	}

	public String getLoginDate() {
		return loginDate;
	}

	public void setLoginDate(String loginDate) {
		this.loginDate = loginDate;
	}
	
}